home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Ubuntu 9.10 PL
/
karmelkowy-koliberek-desktop-9.10-i386-PL.iso
/
casper
/
filesystem.squashfs
/
etc
/
zsh_command_not_found
< prev
Wrap
Text File
|
2009-10-13
|
645b
|
26 lines
# (c) Zygmunt Krynicki 2007,
# Licensed under GPL, see COPYING for the whole text
#
# This script will look-up command in the database and suggest
# installation of packages available from the repository
# Pseudo-namespace cnf_
function cnf_preexec() {
typeset -g cnf_command="${1%% *}"
}
function cnf_precmd() {
(($?)) && [ -n "$cnf_command" ] && [ -x /usr/lib/command-not-found ] && {
whence -- "$cnf_command" >& /dev/null ||
/usr/bin/python /usr/lib/command-not-found -- "$cnf_command"
unset cnf_command
}
}
typeset -ga preexec_functions
typeset -ga precmd_functions
preexec_functions+=cnf_preexec
precmd_functions+=cnf_precmd